﻿namespace cs_basic_01
{
    internal class Program
    {
        static void Main(string[] args)
        {
            int var1 = 5;
            int var2 = 5;
            string name1 = "小明";
            string name2 = "小王";
            Console.WriteLine("Hello, World!");
            Console.WriteLine("var1 的值是{0}",var1);
            Console.Write("1111111111111111111111");
            Console.Write("2222222222222222222222");
            Console.Write("\n");
            Console.WriteLine("我要用System命名空间下的Csonsole类中的WriteLined方法打印两个数，分别是{0}和{1}，还有，我是{2}",1,5,"xiaowang");
            Console.WriteLine($"我要用System命名空间下的Csonsole类中的WriteLined方法打印两个数，分别是{var1}和{var2}");
            Console.WriteLine($"{name1}的年龄是{var1}岁，{name2}的年龄是{var2}岁");
            Console.WriteLine($"{name1}有{var1:C}元，{name2}有{var2:C}元");

            int MyInt = 100;
            Console.WriteLine($"|{MyInt,10}|");
            Console.WriteLine($"|{MyInt,-10}|");

        }
    }
}
